//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    curDate:'0'
  },
  //事件处理函数
  bindViewTap: function() {
    
  },
  onLoad: function () {
    wx.showShareMenu({
      withShareTicket: true,
      menus: ['shareAppMessage', 'shareTimeline']
    })
  },

  onShareAppMessage: function() {
    return {
      title: '癌痛规范化治疗小助手',
      imageUrl: '' // 图片 URL
    }
  },

  switchFn(e) {
    this.setData({
      curDate: e.currentTarget.dataset.cur
    })
  }
})
